#include<stdio.h>
#include"node.h"
#include"log.h"

#define DEBUG_MODE 0

void print_node(struct node *Node)
{
	#if DEBUG_MODE
	printf("----------------------------------------------------");
	printf("Node ip   :%s\n",inet_ntoa(Node->ip));
	printf("Node port :%d\n",Node->port);
	#else
	log_info("----------------------------------------------------");
        log_info(inet_ntoa(Node->ip));
        log_info(Node->port);
	#endif
}
